<?php
/**
 * Created by PhpStorm.
 * User: wzy12
 * Date: 2018/10/16
 * Time: 22:31
 */

namespace app\admin\validate;


use think\Validate;

class UserLevel extends Validate
{
    protected $rule = [
        'level_name|等级名称'  =>  'require',
        'amount|消费额度' => 'require',
        'discount|折扣率' => 'require',
        'describe|等级描述' => 'require',
        '__token__' => 'token|require'
    ];

    protected $message = [
        '__token__.require'  =>  '请不要进行非法操作',
    ];

    protected $scene = [
        'del' => ['__token__'],
    ];
}